

import 'package:baby/Entities/Record/TextRecord.dart';

/**
    Created by IntelliJ IDEA.
    User: yeganaaa
    Date: 5/13/19
    Time: 10:37 AM
    Company: Tughluq network technologies
 */

class Comment {
  String content;
  DateTime dateTime;
  int likeCount;
  int unlikeCount;
  Comment replayTo;
  TextRecord commentTo;
  List<Comment> comments;
  //User user;

  Comment({this.content, this.dateTime, this.likeCount, this.unlikeCount, this.replayTo, this.commentTo, this.comments}) {
    this.comments ??= [];
    this.replayTo?.comments?.add(this);
    this.dateTime ??= DateTime.now();
  }
}
